package com.csy.property.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csy.property.community.domain.AjFacility;
import com.csy.property.community.domain.vo.AjFacilityWhRecordVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 */
public interface IAjFacilityService extends IService<AjFacility> {

    /**
     * 查询设施列表
     * @param ajFacility
     * @return
     */
    List<AjFacility> getFacilityList(AjFacility ajFacility);

    /**
     *  获取设施维护记录
     * @param facilityId
     * @return
     */
    List<AjFacilityWhRecordVo> getFacilityWhRecords(Integer facilityId);

    /**
     * 添加设施
     * @param ajFacility
     * @return
     */
    int add(AjFacility ajFacility);

    /**
     * 添加维护记录
     * @param recordVo
     * @return
     */
    int addWH(AjFacilityWhRecordVo recordVo);
}
